package com.guigu.serviceorder.controller;

import com.guigu.common_util.pojo.utils.Result;
import com.guigu.serviceorder.service.OrderAndOrderItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/OrderAndOrderItem")
public class OrderAndOrderItemController {

    @Autowired
    private OrderAndOrderItemService orderAndOrderItemService;

    @GetMapping("/queryByJoinId")
    public Result queryById(int id){
        Result result=orderAndOrderItemService.queryById(id);
        System.out.println("11111111111");
        return result;
    }
}
